<?php
class Desc_model extends CI_Model {

    function __construct()
    {
        parent::__construct();
    }
    
    function get_desc($cat_id)
    {
    	$cat_id = intval($cat_id);
    	$query = $this->db->query('SELECT * FROM '.$this->db->dbprefix('desc').' where cat_id = '.$cat_id);
    	return $query->result_array();
    } 

}